package com.quest.space.poker.biz.impl;

import com.quest.space.data.WebSocketMsg;
import com.quest.space.poker.base.enums.TopicEnum;
import com.quest.space.poker.biz.GameService;
import com.quest.space.poker.biz.WebSocketService;

public class WebSocketServiceImpl implements WebSocketService {
    private static GameService gameService = new GameServiceImpl();


    @Override
    public void handleMsg(WebSocketMsg socketMsgVo) {
        //斗地主的处理逻辑
        if (TopicEnum.POKER.getTitle().equals(socketMsgVo.getTopic())) {
            gameService.handle(socketMsgVo);
        }

    }
}
